Skip to content

Update php laravel to latest stable version#24193

Closed
wing328 wants to merge 5 commits into
masterfrom
php-lavrael-test
Closed

Update php laravel to latest stable version#24193
wing328 wants to merge 5 commits into
masterfrom
php-lavrael-test

Conversation

@wing328

@wing328 wing328 commented Jul 3, 2026

Copy link
Copy Markdown
Member

update php laravel to latest stable version
test php with php 8.3, 8.4 (8.2 will be reached EOL in ~6 months)

PR checklist

  • Read the contribution guidelines.
  • Run the following to build the project and update samples:
    ./mvnw clean package || exit
    ./bin/generate-samples.sh ./bin/configs/*.yaml || exit
    ./bin/utils/export_docs_generators.sh || exit
    
    (For Windows users, please run the script in WSL)
    Commit all changed files.
    This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
    These must match the expectations made by your contribution.
    You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example ./bin/generate-samples.sh bin/configs/java*.
    IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
  • If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.

Summary by cubic

Upgraded PHP to ^8.3, laravel/framework to ^13.0, and phpunit/phpunit to ^12.0 in the Laravel generator and samples; CI tests 8.3/8.4 and runs PHPUnit only when config/tests exist; added comments to .openapi-generator-ignore.

Written for commit eb62aa3. Summary will update on new commits.

Review in cubic

@wing328 wing328 changed the title test php laravel update php laravel to latest stable version Jul 3, 2026
@wing328 wing328 changed the title update php laravel to latest stable version Update php laravel to latest stable version Jul 3, 2026
@wing328 wing328 marked this pull request as ready for review July 3, 2026 04:36
@wing328 wing328 added this to the 7.24.0 milestone Jul 3, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 5 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 4 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="samples/server/petstore/php-laravel/composer.json">

<violation number="1" location="samples/server/petstore/php-laravel/composer.json:24">
P1: phpunit.xml.dist still targets PHPUnit 9.5 but the dependency is now ^12.0. The config uses a PHPUnit 9 schema, removed attributes (convertErrorsToExceptions, convertNoticesToExceptions, convertWarningsToExceptions), and the legacy <coverage><include> structure that was replaced by <source> in PHPUnit 10.1+. Running vendor/bin/phpunit with this config will produce errors. Run vendor/bin/phpunit --migrate-configuration or update the config to the PHPUnit 12 format.</violation>
</file>

Tip: Review your code locally with the cubic CLI to iterate faster.

Re-trigger cubic

@@ -16,12 +16,12 @@
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: phpunit.xml.dist still targets PHPUnit 9.5 but the dependency is now ^12.0. The config uses a PHPUnit 9 schema, removed attributes (convertErrorsToExceptions, convertNoticesToExceptions, convertWarningsToExceptions), and the legacy structure that was replaced by in PHPUnit 10.1+. Running vendor/bin/phpunit with this config will produce errors. Run vendor/bin/phpunit --migrate-configuration or update the config to the PHPUnit 12 format.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At samples/server/petstore/php-laravel/composer.json, line 24:

<comment>phpunit.xml.dist still targets PHPUnit 9.5 but the dependency is now ^12.0. The config uses a PHPUnit 9 schema, removed attributes (convertErrorsToExceptions, convertNoticesToExceptions, convertWarningsToExceptions), and the legacy <coverage><include> structure that was replaced by <source> in PHPUnit 10.1+. Running vendor/bin/phpunit with this config will produce errors. Run vendor/bin/phpunit --migrate-configuration or update the config to the PHPUnit 12 format.</comment>

<file context>
@@ -21,7 +21,7 @@
     },
     "require-dev": {
-        "phpunit/phpunit": "^9.5"
+        "phpunit/phpunit": "^12.0"
     },
     "autoload": {
</file context>

@wing328 wing328 closed this Jul 3, 2026
@wing328 wing328 deleted the php-lavrael-test branch July 3, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant